package cn.zebra.dev.other.module.ordersDiscounts.service;

import cn.zebra.dev.ibatis.plus.service.IService;
import cn.zebra.dev.ibatis.plus.utils.PageUtils;
import cn.zebra.dev.other.module.ordersDiscounts.entity.DiscountsEntity;

import java.util.Map;

/**
 * 
 *
 * @author runnable
 */
public interface DiscountsService extends IService<DiscountsEntity> {

    PageUtils<DiscountsEntity> findPage(Map<String, Object> params);

    //根据用户id查询优惠券
    DiscountsEntity findAllByCreateId(Long id);

    //根据id修改相应优惠券的过期状态
    boolean updateStatusById(Long id, int status);

}

